package com.basker.pisces.auth.domain.service;

import com.basker.pisces.auth.domain.exception.AuthUserRegisteredException;
import com.basker.pisces.auth.service.pojo.ChangePasswordRequest;
import com.basker.pisces.auth.service.pojo.LoginRequest;
import com.basker.pisces.auth.service.pojo.LoginResult;
import com.basker.pisces.auth.service.pojo.RegistRequest;
import com.basker.pisces.context.LoginContext;
import com.basker.pisces.context.Token;

public interface IAuthDomainService {
    void changePassword(ChangePasswordRequest request);

    LoginContext identify(String tokenId);

    LoginResult login(LoginRequest loginRequest);

    void logout(String tokenId);

    Long regist(RegistRequest request) throws AuthUserRegisteredException;
}
